]> dgit.raspbian.org Git - gnome-shell.git/commit
quickSettings: Fix icon-name construct property in menu toggles
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 25 Mar 2023 21:55:33 +0000 (22:55 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 27 Mar 2023 14:52:50 +0000 (14:52 +0000)
commit9a814798d703f02da2b6fec878ea9836d015dde5
treefec9067eb30e54bdcae23f5e6277c26cda3aca42
parent078e182902942cf6e9f9eb876723ee836cf3759d
quickSettings: Fix icon-name construct property in menu toggles

Both :icon-name and :gicon are propagated to the internal QuickToggle
with property bindings. However the bindings are set up in the wrong
order:

:icon-name is a convenience property to set :gicon to a ThemedIcon
of the given name. That means binding :icon-name first will correctly
set the underlying StIcon's :gicon, but then the :gicon binding will
set it again to null.

Fix this by swapping the order in which the bindings are set up,
so that it works for both properties.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6542

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2726>
js/ui/quickSettings.js